<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" th:href="@{/favicon.ico}">
    <title>首页</title>
</head>
<body>
<h1>首页</h1>
<span shiro:principal=""></span>
<span shiro:hasRole="admin">管理员</span>
<form th:action="@{/logout}" method="post">
    <input type="submit" value="退出">
</form>
<ul>
    <li shiro:hasRole="user">
        <a href="">用户管理</a>
        <ul>
            <li shiro:hasPermission="user:add:*">添加</li>
            <li shiro:hasPermission="user:update:*">修改</li>
        </ul>
    </li>
    <li shiro:hasRole="admin">系统管理</li>
    <li>通知管理</li>
    <li shiro:hasRole="product">
        <a href="">订单管理</a>
        <ul>
            <li shiro:hasPermission="product:update:*">修改</li>
            <li shiro:hasPermission="product:pay:*">付款</li>
        </ul>
    </li>
    <li>日志管理</li>
</ul>
</body>
</html>